package com.koron.order.change.util;

import com.koron.common.core.config.CustomInheritableThreadLocal;

/**
 * @ClassName ThreadLocalOrderChange
 * @description 变更标识 线程上下文传递
 * @Author zhouj
 * @Date 2022/2/18 14:09
 */
public class ThreadLocalOrderChange {

    private static final ThreadLocal<String> changeOrder = new CustomInheritableThreadLocal<>();

    public static void set(String str) {
        changeOrder.set(str);
    }

    public static String get() {
        return changeOrder.get();
    }

    public static void clear() {
        changeOrder.remove();
    }

}
